Skip to content

Conversation

@LLFourn
Copy link
Owner

@LLFourn LLFourn commented Sep 5, 2025

Adds that fails when the input is zero, with a proper error type.

- Add ZeroScalar error type for when converting zero to NonZero
- Implement TryFrom<integer> for Scalar<S, NonZero> that fails on zero
- Keep existing infallible From<integer> for Scalar<S, Zero>
- Add comprehensive test coverage for the new conversions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants